package com.yqb.sdk.plugin;

import com.yqb.sdk.inter.QBInitCallBack;
import com.yqb.sdk.util.Common;
import com.yqb.sdk.util.LogUtils;
import com.yqb.sdk.util.QBUtils;

import android.app.Activity;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.text.TextUtils;

public class QBInit {

	private static QBInit instance;

	public static QBInit getInstance() {
		if (instance == null) {
			instance = new QBInit();
		}
		return instance;
	}

	public void init(Activity activity, Boolean isDebug,
			QBInitCallBack initCallBack) {
		Common.GameID = QBUtils.getMetaData(activity, "GameID");
		Common.isInit = true;
		initCallBack.onSuccess();
	}
}
